<?php
/* --------------------------------------------------------------
   gm_pdf_conditions.php 2008-05-29 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_CONDITIONS; ?></b>
		</td>
		<td valign="top" align="right" class="main">
			<?php 
				echo gm_get_language_link('gm_pdf_action.php', 'gm_pdf_content', 'gm_box_submenu_content');
			?>
		</td>
	</tr>
</table>
<br />
<form id="gm_pdf_form">
	<table border="0" width="100%" cellspacing="0" cellpadding="2" id="gm_table">
		
		<?php foreach($gm_values as $key => $value) {?>
		
			<tr>
				<td valign="top" align="left" class="main" width="200">
					<?php echo constant(str_replace('GM_PDF_', 'GM_PDF_TITLE_', $key)); ?>
				</td>
				<td valign="top" align="left" class="main">
					<textarea onclick="gm_fadeout_boxes('gm_status')" style="width:600px;" id=<?php echo '"' . $key . '"'; if($key == 'GM_PDF_CONDITIONS' || $key == 'GM_PDF_WITHDRAWAL') { echo 'rows="15"'; } else { echo 'rows="1"'; } ?>><?php echo $value; ?></textarea>
				</td>
			</tr>
		<?php } ?>
		<tr>
			<td valign="middle" align="left" class="main">		
				&nbsp;
			</td>
			<td valign="middle" align="left" class="main">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="button" value="<?php echo BUTTON_SAVE;?>" onClick="gm_fadeout_boxes('gm_status');gm_post_boxes('<?php echo xtc_href_link('gm_pdf_action.php', 'action=gm_pdf_post&lang_id=' . $lang_id); ?>', 'gm_status')">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>
</form>